<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="layui-form timo-compile">
    <form th:action="@{/metadata/template/save}">
        <input type="hidden" name="id" th:if="${metadataTemplateDO}" th:value="${metadataTemplateDO.id}">
        <div class="layui-form-item">
            <label class="layui-form-label required">唯一标志</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="name" placeholder="请输入模板唯一名称" th:value="${metadataTemplateDO?.name}">
            </div>
            <div class="layui-form-mid layui-word-aux">由字母、数字、下划线组成，标记唯一不重复</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">模板名称</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="viewName" placeholder="请输入模板显示名称" th:value="${metadataTemplateDO?.viewName}">
            </div>
            <div class="layui-form-mid layui-word-aux">由合法字符组成，用于查看</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">模板类型</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="systemTemplate" placeholder="请输入模板类型" th:value="${metadataTemplateDO?.systemTemplate}">
            </div>
            <div class="layui-form-mid layui-word-aux">由SELECT，RADIO提供</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">文件名字</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="templateFileName" placeholder="请输入模板文件名字" th:value="${metadataTemplateDO?.templateFileName}">
            </div>
            <div class="layui-form-mid layui-word-aux">TODO 后续使用说明</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">存放路径</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="templateFilePath" placeholder="请输入模板文件存放路径" th:value="${metadataTemplateDO?.templateFilePath}">
            </div>
            <div class="layui-form-mid layui-word-aux">TODO 后续使用说明</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">模板类型</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="templateType" placeholder="请输入实体类字段模板" th:value="${metadataTemplateDO?.templateType}">
            </div>
            <div class="layui-form-mid layui-word-aux">由SELECT，RADIO提供</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">模板内容</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="value" placeholder="请输入模板内容" th:value="${metadataTemplateDO?.value}">
            </div>
            <div class="layui-form-mid layui-word-aux">TODO 后续使用说明</div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea" name="remark">[[${metadataTemplateDO?.remark}]]</textarea>
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>